import { Message } from 'element-ui'

const duration = 3000
const offset = 40

export function showSuccess(message) {
    Message.success({
        message,
        duration,
        offset
    })
}

export function showInfo(message) {
    Message.info({
        message,
        duration,
        offset
    })
}

export function showWarning(message) {
    Message.warning({
        message,
        duration,
        offset
    })
}

export function showError(message) {
    Message.error({
        message,
        duration,
        offset
    })
}